//挑战成功的日期
class Challenge {
  int time = 0;
  int id = 0;
  int type = 2; //2每日

  Challenge({
    this.time = 0,
  });
  Challenge.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    type = json['type'];
    time = json['time'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['time'] = this.time;
    data['type'] = this.type;
    return data;
  }
}
